﻿@using SCMS.Resources
@model SCMS.UI.Models.Search
@{AjaxOptions ajaxOpts = new AjaxOptions
      {
          UpdateTargetId = "requestDiv",
          LoadingElementId = "loading",
          HttpMethod = "Post",
          Url = Url.Action("Search"),
          //OnSuccess = "HidePopupDiv"
      };}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Ajax.BeginForm(ajaxOpts))
{
    @Html.ValidationSummary(true)

    <table>
        <tr>
            <td class="arrowLink" valign="top">
                @Ajax.ActionLink(Resources_frank.Global_String_AddNew, "Index", new { id = "LoadOrderRequest" }, new AjaxOptions
                {
                    UpdateTargetId = "requestDiv",
                    LoadingElementId = "loading",
                    Url = Url.Action("LoadOrderRequest")
                })
            </td>
            <td valign="top">@Html.EditorFor(model => model.EntityOrderRequest.RefNumber)
                @Html.ValidationMessageFor(model => model.EntityOrderRequest.RefNumber)
            </td>
            <td>
                <input type="submit" class="btn green"  value="@Resources_frank.Global_String_Search" />
            </td>
        </tr>
    </table>

}
